/**
 * Home 相关接口
 */
import api from '@/api/request'

let domain = ''

// 公告列表
export const getCmsList = function (data) {
  return api.post(`${domain}api/v1/cms/list`, {
    data,
    cache: false,
    cancel: false
  })
}

// 获取公告详情
export const getCmsDetail = function (id) {
  return api.get(`${domain}api/v1/cms/detail/${id}`, {
    cache: 60,
    cancel: false
  })
}

// Banner
export const getBanner = function (data) {
  return api.get(`${domain}api/v2/individual/promotionActivity`, {
    data,
    cache: 60,
    cancel: false
  })
}
